import { useMount, useRequest } from 'ahooks'
import React from 'react'
import { Http } from '../../../Api'

export const AIType = () => {
    const { runAsync: get } = useRequest(Http, {
        manual: true,
        onSuccess: res => {
            console.log(res)
            if (res) {
            } else pos({ url: 'posSaveJsonInfoByUuid', data: JSON.stringify(JSON.stringify('123')), path: ['ai/type'] })
        },
    })

    const { runAsync: pos } = useRequest(Http, {
        manual: true,
        onSuccess: res => {},
    })

    useMount(() => get({ url: 'getJsonInfoByUuid', data: { uuid: 'ai/type' } }))

    return <div>ai类型</div>
}
